﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Winservice.demo.Models.Entities
{
    /// <summary>
    /// 变量类
    /// </summary>
    [Serializable]
    public class Var
    {
        /// <summary>
        /// Ultimus变量
        /// </summary>
        public Var() { }

        /// <summary>
        /// Ultimus变量
        /// </summary>
        /// <param name="name">变量名称</param>
        /// <param name="value">变量值</param>
        public Var(string name, object value)
        {
            this.variableName = name;
            this.variableValue = value;
        }

        /// <summary>
        /// Ultimus变量名称
        /// </summary>
        private string variableName = string.Empty;
        /// <summary>
        /// 获取或者设置Ultimus变量名称(缺省值:string.Empty)
        /// </summary>
        public string VARIABLE_NAME { get { return variableName; } set { variableName = value; } }

        /// <summary>
        /// Ultimus变量值
        /// </summary>
        private object variableValue = string.Empty;
        /// <summary>
        /// 获取或者设置Ultimus变量值(缺省值:string.Empty)
        /// </summary>
        public object VARIABLE_VALUE { get { return variableValue; } set { variableValue = value; } }
    }
}
